package org.example.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.apache.ibatis.annotations.Param;
import org.example.domain.po.ErpDepotHead;
import org.example.domain.po.Erpmaterialinventory;
import org.example.service.ErpmaterialinventoryService;
import org.example.mapper.ErpmaterialinventoryMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 24059
* @description 针对表【erpmaterialinventory】的数据库操作Service实现
* @createDate 2024-11-04 09:23:57
*/
@Service
public class ErpmaterialinventoryServiceImpl extends ServiceImpl<ErpmaterialinventoryMapper, Erpmaterialinventory>
    implements ErpmaterialinventoryService{
    public Page<Erpmaterialinventory> getMaterialInventory(Page<Erpmaterialinventory> page, Long tenantId, Long depotId){
        return baseMapper.getMaterialInventory(page,tenantId, depotId);
    }
    public List<Erpmaterialinventory> getMaterialInventoryByBarCode( @Param("headerId") Long headerId){
        return baseMapper.getMaterialInventoryByBarCode(headerId);
    }
    public List<Erpmaterialinventory>getherderId(@Param("headerId") Long headerId){
        return baseMapper.getherderId(headerId);
    }

    public List<Erpmaterialinventory>getMaterialInventoryByBarCodexq(@Param("headerId") Long headerId){
        return baseMapper.getMaterialInventoryByBarCodexq(headerId);
    }
}




